import axios from '@/https/index'

// 1.评论
export const replyAxios=(currentPage,pageSize)=>{
    return new Promise((resolve,reject)=>{
        axios({
            url:'http://42.193.23.188:1011/comment/findAllComment',
            method:'GET',
            params:{
                currentPage:currentPage,
                pageSize:pageSize
            }
        })
        .then((res)=>{
            resolve(res)
        })
        .catch((err)=>{
            reject(err)
        })
    })
}
//2查看评论详情
export const replyDetailAxios=(commentId)=>{
    return new Promise((resolve,reject)=>{
        axios({
            url:'http://42.193.23.188:1011/comment/findAllCommentById',
            method:'GET',
            params:{
                commentId:commentId
            }
        })
        .then((res)=>{
            resolve(res)
        })
        .catch((err)=>{
            reject(err)
        })
    })
}